import request from '@/request/index.js'



export function userInfo() {
	return request.get({
		url: `/api/user/index`,
	});
}
export function myChild() {
	return request.get({
		url: `/api/user/myChild`,
	});
}
export function mySon() {
	return request.get({
		url: `/api/user/mySon`,
	});
}
export function cartlist() {
	return request.get({
		url: `/api/index/cartlist`,
	});
}
export function profile(data) {
	return request.post({
		url: `/api/user/profile`,
		data
	});
}
export function editcart(data) {
	return request.post({
		url: `/api/index/editcart`,
		data
	});
}
export function delcart(data) {
	return request.post({
		url: `/api/index/delcart`,
		data
	});
}

export function addcart(data) {
	return request.post({
		url: `/api/index/addcart`,
		data
	});
}
export function cartcreateOrder(data) {
	return request.post({
		url: `/api/index/cartcreateOrder`,
		data
	});
}

